﻿var g = window.g;
String.prototype.trim = function () {
    return g.trim(this);
}
String.prototype.lTrim = function () {
    return g.lTrim(this);
}
String.prototype.rTrim = function () {
    return g.rTrim(this);
}
String.prototype.resetBlank = function () {
    return g.resetBlank(this);
}
String.prototype.getNum = function () {
    return g.getNum(this);
}
String.prototype.getInt = function () {
    return g.getInt(this);
}
String.prototype.getFloat = function () {
    return g.getFloat(this);
}
String.prototype.getCN = function () {
    return g.getCN(this);
}
String.prototype.toInt = function () {
    return g.toInt(this);
}
String.prototype.getLen = function () {
    return g.getLen(this);
}
String.prototype.getCount = function (Num) {
    return g.getCount(this, Num);
}
String.prototype.getFileName = function () {
    return g.getFileName(this);
}
String.prototype.getFileExt = function () {
    return g.getFileExt(this);
}
String.prototype.getQueryString = function (Str) {
    return g.getQueryString(Str);
}
String.prototype.replaceAll = function (Str, Str1, Bo) {
    return g.replaceAll(this, Str, Str1, Bo);
}
String.prototype.toDate = function (Num) {
    return g.toDate(this, Num);
}
Number.prototype.toDate = function (Num) {
    return g.toDate(this, Num);
}
String.prototype.like = function (Str) {
    return g.like(this, Str);
}
String.prototype.isLike = function (Str) {
    return g.isLike(this, Str);
}
String.prototype.isLike = function (Str) {
    return g.isLike(this, Str);
}
String.prototype.isLeftLike = function (Str) {
    return g.isLeftLike(this, Str);
}
String.prototype.isRightLike = function (Str) {
    return g.isRightLike(this, Str);
}
String.prototype.cuter = function (Num) {
    return g.cuter(this, Num);
}
Number.prototype.cuter = function (Num) {
    return g.cuter(this, Num);
}
String.prototype.xmlClear = function () {
    return g.xmlClear(this);
}
String.prototype.sameCharNumber = function ( Str, Num) {
    return g.sameCharNumber(this, Str, Num);
}
String.prototype.guid = function (Num1, Num2) {
    return g.guid(Num1, Num2);
}
String.prototype.toUnicode = function () {
    return g.toUnicode(this);
}
String.prototype.toHanzi = function () {
    return g.toHanzi(this);
}

Number.prototype.lenWithZero = function (Num) {
    return g.lenWithZero(this, Num);
}
Number.prototype.decimal = function (Num) {
    return g.decimal(this, Num);
}
Number.prototype.percent = function (Num) {
    return g.percent(this, Num);
}
Number.prototype.RMB = function (Str, Num1, Num2) {
    return g.RMB(this, Str, Num1, Num2);
}
Number.prototype.currency = function (Str, Num1, Num2) {
    return g.currency(this, Str, Num1, Num2);
}
Number.prototype.numShort = function (Str) {
    return g.numShort(this, Str);
}
Date.prototype.getCNDate = function () {
    return g.getCNDate(this);
}
Date.prototype.format = function (Str) {
    return g.format(this, Str);
}
Date.prototype.duration = function (Str,Str1) {
    return g.duration(this, Str,Str1);
}
Date.prototype.addDate = function (Str, Num) {
    return g.addDate(this, Str, Num);
}
Date.prototype.diff = function (Str, D) {
    return g.diff(this,Str, D);
}
Date.prototype.addMilliseconds = function (Num) {
    return g.addMilliseconds(this, Num);
}
Date.prototype.addSeconds = function (Num) {
    return g.addSeconds(this, Num);
}
Date.prototype.addMinutes = function (Num) {
    return g.addMinutes(this, Num);
}
Date.prototype.addHours = function (Num) {
    return g.addHours(this, Num);
}
Date.prototype.addDays = function (Num) {
    return g.addDays(this, Num);
}
Date.prototype.addMonths = function (Num) {
    return g.addMonths(this, Num);
}
Date.prototype.addYears = function (Num) {
    return g.addYears(this, Num);
}
Date.prototype.getWeek = function (Str) {
    return g.getWeek(this, Str);
}
Date.prototype.getQuarterStartMonth = function () {
    return g.getQuarterStartMonth(this);
}
Date.prototype.getWeekStartDate = function () {
    return g.getWeekStartDate(this);
}
Date.prototype.getWeekEndDate = function () {
    return g.getWeekEndDate(this);
}
Date.prototype.getMonthStartDate = function () {
    return g.getMonthStartDate(this);
}
Date.prototype.getMonthEndDate = function () {
    return g.getMonthEndDate(this);
}
Date.prototype.getQuarterStartDate = function () {
    return g.getQuarterStartDate(this);
}
Date.prototype.getQuarterEndDate = function () {
    return g.getQuarterEndDate(this);
}

Array.prototype.min2max = function () {
    return g.min2max(this);
}
Array.prototype.max2min = function () {
    return g.max2min(this);
}
Array.prototype.index = function (Val) {
    return g.index(this, Val);
}
Array.prototype.max = function () {
    return g.max(this);
}
Array.prototype.min = function () {
    return g.min(this);
}
Array.prototype.sum = function () {
    return g.sum(this);
}
Array.prototype.avg = function () {
    return g.avg(this);
}
Array.prototype.removeRepeatAttr = function () {
    return g.removeRepeatAttr(this);
}


Array.prototype.merge = function (Ary_Obj) {
    return g.merge(this, Ary_Obj);
}
Array.prototype.index = function (Val_Func, Val) {
    return g.index(this, Val_Func, Val);
}
Array.prototype.max = function (Str) {
    return g.max(this, Str);
}
Array.prototype.min = function (Str) {
    return g.min(this, Str);
}
Array.prototype.sum = function (Str_Ary) {
    return g.sum(this, Str_Ary);
}
Array.prototype.avg = function (Str_Ary) {
    return g.avg(this, Str_Ary);
}
Array.prototype.group = function (Str_Ary, Func) {
    return g.group(this, Str_Ary, Func);
}
Array.prototype.pivot = function (Str_Ary, Str, Str1, Str_Ary1) {
    return g.pivot(this, Str_Ary, Str, Str1, Str_Ary1);
}
Array.prototype.unpivot = function (Str_Ary, Str, Str1, Str_Ary1) {
    return g.unpivot(this, Str_Ary, Str, Str1, Str_Ary1);
}
Array.prototype.count = function (Str_Func, Obj) {
    return g.count(this, Str_Func, Obj);
}
Array.prototype.getMinRow = function (Str) {
    return g.getMinRow(this, Str);
}
Array.prototype.getMaxRow = function (Str) {
    return g.getMaxRow(this, Str);
}
Array.prototype.query = function (Str_Func, Obj) {
    return g.query(this, Str_Func, Obj);
}
Array.prototype.prepart = function (Str_Func, Obj) {
    return g.prepart(this, Str_Func, Obj);
}
Array.prototype.appart = function (Str_Func, Obj) {
    return g.appart(this, Str_Func, Obj);
}
Array.prototype.clearColumn = function (Str_Ary) {
    return g.clearColumn(this, Str_Ary);
}
Array.prototype.retainColumn = function (Str_Ary) {
    return g.retainColumn(this, Str_Ary);
}
Array.prototype.tranTreeData = function (Str, Str1, Str2) {
    return g.tranTreeData(this, Str, Str1, Str2);
}
Array.prototype.changeToArrays = function (Str_Ary) {
    return g.changeToArrays(this, Str_Ary);
}
Array.prototype.toHash = function (Str) {
    return g.toHash(this, Str);
}
Array.prototype.removeRepeatAttr = function (Str_Ary) {
    return g.removeRepeatAttr(this, Str_Ary);
}
Array.prototype.sortBy = function (Obj_Arys, Str, Str1, Boo) {
    return g.sortBy(this, Obj_Arys, Str, Str1, Boo);
}
Array.prototype.page = function (Num, Num1) {
    return g.page(this, Num, Num1);
}
Array.prototype.removed = function (Str_Func, Obj) {
    return g.removed(this, Str_Func, Obj);
}
Array.prototype.remain = function (Str_Func, Obj) {
    return g.remain(this, Str_Func, Obj);
}
Array.prototype.clear = function () {
    return g.clear(this);
}
Array.prototype.preInsert = function (Str_Func, Obj, Obj1) {
    return g.preInsert(this, Str_Func, Obj, Obj1);
}
Array.prototype.apInsert = function (Str_Func, Obj, Obj1) {
    return g.apInsert(this, Str_Func, Obj, Obj1);
}
Array.prototype.preInserts = function (Str_Func, Ary, Obj) {
    return g.preInserts(this, Str_Func, Ary, Obj);
}
Array.prototype.apInserts = function (Str_Func, Ary, Obj) {
    return g.apInserts(this, Str_Func, Ary, Obj);
}
Array.prototype.config = function (Str_Func, Str, Obj) {
    return g.config(this, Str_Func, Str, Obj);
}
Array.prototype.each = function (Func) {
    return g.each(this, Func);
}
Array.prototype.shuffle = function () {
    return g.shuffle(this);
}
Array.prototype.intersection = function (Ary, Str_Func, Obj) {
    return g.intersection(this, Ary, Str_Func, Obj);
}
Array.prototype.subtract = function (Ary, Str_Func, Obj) {
    return g.subtract(this, Ary, Str_Func, Obj);
}
Array.prototype.union = function (Ary, Str_Func, Obj) {
    return g.union(this, Ary, Str_Func, Obj);
}
Array.prototype.isSameCollect = function (Ary, Ary1, Str_Ary) {
    return g.isSameCollect(this, Ary, Ary1, Str_Ary);
}
Array.prototype.isPartSet = function (Ary, Str_Ary) {
    return g.isPartSet(this, Ary,Str_Ary);
}
Array.prototype.isSubset = function (Ary, Str_Ary) {
    return g.isSubset(this, Ary, Str_Ary);
}
Array.prototype.T = {};
Array.prototype.T.toTree = function (Str, Str1, Str2) {
    return g.T.toTree(this, Str, Str1, Str2);
}
Array.prototype.T.toTable = function (Str) {
    return g.T.toTable(this, Str);
}
Array.prototype.T.toHash = function (Str,boo) {
    return g.T.toHash(this, Str, boo);
}
Array.prototype.T.toHashMap = function (Str) {
    return g.T.toHashMap(this, Str);
}
Array.prototype.T.toSigntree = function (Str, Str1, Str2) {
    return g.T.toSigntree(this, Str, Str1, Str2);
}
Array.prototype.T.each = function (Str, Func) {
    return g.T.each(this, Str, Func);
}
Array.prototype.T.updateNodes = function (Str, Func) {
    return g.T.updateNodes(this, Str, Func);
}
Array.prototype.T.updateChilds = function (Obj_Strs, Str, Func) {
    return g.T.updateChilds(this, Obj_Strs, Str, Func);
}
Array.prototype.T.updateParents = function (Obj_Strs, Str, Func) {
    return g.T.updateParents(this, Obj_Strs, Str, Func);
}
Array.prototype.T.deleteNodes = function ( Str, Func) {
    return g.T.deleteNodes(this, Str, Func);
}
Array.prototype.T.insertNodesAfter = function (Str, Ary_Objs, Func, Boo) {
    return g.T.insertNodesAfter(this, Str, Ary_Objs, Func, Boo);
}
Array.prototype.T.insertNodesBefore = function (Str, Ary_Objs, Func, Boo) {
    return g.T.insertNodesBefore(this, Str, Ary_Objs, Func, Boo);
}
Array.prototype.T.insertChildNodes = function (Str, Ary_Objs, Func, Num, Boo) {
    return g.T.insertChildNodes(this, Str, Ary_Objs, Func, Num, Boo);
}
Array.prototype.T.getSigntree = function (Str, Obj_Str) {
    return g.T.getSigntree(this, Str, Obj_Str);
}
Array.prototype.T.queryNodes = function (Str, Func) {
    return g.T.queryNodes(this, Str, Func);
}
Array.prototype.T.getLevelCount = function (Str) {
    return g.T.getLevelCount(this, Str);
}
Array.prototype.T.getLevelNodes = function (Str, Num) {
    return g.T.getLevelNodes(this, Str, Num);
}
Array.prototype.T.parent = function (Str, Obj_Strs) {
    return g.T.parent(this, Str, Obj_Strs);
}
Array.prototype.T.parents = function (Str, Obj_Strs) {
    return g.T.parents(this, Str, Obj_Strs);
}
Array.prototype.T.children = function (Str, Obj_Strs) {
    return g.T.children(this, Str, Obj_Strs);
}
Array.prototype.T.next = function (Str, Obj_Strs) {
    return g.T.next(this, Str, Obj_Strs);
}
Array.prototype.T.prev = function (Str, Obj_Strs) {
    return g.T.prev(this, Str, Obj_Strs);
}
Array.prototype.T.getNode = function (Str, Str1) {
    return g.T.getNode(this, Str, Str1);
}
Array.prototype.T.moveNode = function (Str, Obj_Strs, Obj_Strs1, Num) {
    return g.T.moveNode(this, Str, Obj_Strs, Obj_Strs1, Num);
}
Array.prototype.T.moveNodeBefore = function (Str, Obj_Strs, Obj_Strs1) {
    return g.T.moveNodeBefore(this, Str, Obj_Strs, Obj_Strs1);
}

Array.prototype.T.moveNodeAfter = function (Str, Obj_Strs, Obj_Strs1) {
    return g.T.moveNodeAfter(this, Str, Obj_Strs, Obj_Strs1);
}

Array.prototype.T.moveNodeChild = function (Str, Obj_Strs, Obj_Strs1, Num) {
    return g.T.moveNodeChild(this, Str, Obj_Strs, Obj_Strs1, Num);
}
Array.prototype.T.isHave = function (Str, Func) {
    return g.T.isHave(this, Str, Func);
}
Array.prototype.T.query = function (Str, Boo, Func) {
    return g.T.query(this, Str, Boo, Func);
}

